package com.ccb.sc.common.modules.goods.convert;

import com.ccb.sc.common.modules.goods.entity.GoodsComment;
import com.ccb.sc.common.modules.goods.vo.GoodsCommentVo;
import com.ccb.sc.common.modules.order.vo.OrderCommentCreateVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-20
 */
@Mapper
public interface GoodsCommentConvert {

    GoodsCommentConvert INSTANCE = Mappers.getMapper(GoodsCommentConvert.class);

    GoodsComment createVo2entity(OrderCommentCreateVo createVo);

    List<GoodsCommentVo> entity2ListItemBatch(List<GoodsComment> list);

    GoodsCommentVo entity2Item(GoodsComment entity);
}
